package cn.zwx.search.common.enums;

import lombok.Data;

/**
 * @description: es类型参数
 * @projectName:search-example
 * @see:cn.zwx.search.common.enums
 * @author:zhangwenxue
 * @createTime:2020/10/23 16:57
 * @version:1.0
 */
public enum FieldType {
    /**
     * text
     */
    TEXT("text"),

    KEYWORD("keyword"),

    INTEGER("integer"),

    DOUBLE("double"),

    DATE("date"),

    /**
     * 单条数据
     */
    OBJECT("object"),

    /**
     * 嵌套数组
     */
    NESTED("nested");


    FieldType(String type){
        this.type = type;
    }

    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
